package xin.nick.study.dubbo.consumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xin.nick.study.dubbo.UserService;

/**
 * @Auther: Nick inickning@outlook.com
 * @Date: 2021/2/22 21:24
 * @Description:
 */
@RestController
public class UserController {

    @Autowired
    UserService userService;

    @RequestMapping("/hello")
    public String hello() {
        return userService.say();
    }
}
